<?php
require "../icommon.php";
require "tools/case/class.case.php";
$case=new CASES($iDB);
$do=$_GET["do"];
if(empty($do)){
    $do="show";
}
if($do=="del"){
    $id=trim($_GET["id"],",");
    $result=$case->del($id);
    if($result){
        die(json_encode(array("result"=>0,msg=>"删除成功")));
    }else{
        die(json_encode(array("result"=>-1,msg=>"删除失败")));
    }
}

die(json_encode(array("result"=>-1,msg=>"请指定接口")));

	